﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web
{
    public partial class listnews : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!IsPostBack)
            {
                if (Request.QueryString["type"] != null)
                {
                    string id = Request.QueryString["type"];
                    Maticsoft.BLL.newsinfo bn = new BLL.newsinfo();
                    DataSet ds = bn.GetList(" and newsinfo.tid=" + id+" order by ntime desc");
                    Repeater1.DataSource = ds.Tables[0];
                    Repeater1.DataBind();
                }
            }

        }
    }
}